package com.damie.service;

import com.damie.domain.WasteOrder;
import com.baomidou.mybatisplus.extension.service.IService;
import com.damie.domain.WasteOrderDetails;
import com.damie.param.OrderPageParam;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Alon
 * @since 2021-01-19
 */
public interface WasteOrderService extends IService<WasteOrder> {

    /**
     * 分页查询
     * @param orderPageParam 查询语句条件
     * @return
     */
    List<WasteOrder> pageInfo(OrderPageParam orderPageParam,HttpServletRequest request);

    /**
     * 订单详情表
     * @param wasteOrderId
     * 根据订单id查询
     * @return
     */
    List<WasteOrderDetails> detailsInfo(String wasteOrderId);

    /**
     * 催单功能(15分钟过后没人接单，将自动取消订单)
     * @param oid 根据订单id催单
     */
    Boolean press(String oid);


}
